package com.sdry.web.converter;

import org.springframework.core.convert.converter.Converter;

/**
 * @AUTHOR HACKER
 */
public class StringTrimConverter implements Converter<String, String> {

	public String convert(String source) {
		if (source != null) {
			source = source.trim();
			if (source.equals("")) {
				source = null;
			}
		}
		return source;
	}
}
